#include "Sequence.h"

/**
* Constructeur
*/
Sequence::Sequence( CARDINALITY card ) : Children( card )
{
	// TODO
}
Sequence::Sequence( CARDINALITY card, list<ContentParticules*>& CPList) : Children( card, CPList)
{
	// TODO
}
/**
* Destructeur
*/
Sequence::~Sequence()
{
	// TODO
}

void Sequence::printMe()
{
	std::cout<<"(";
	std::list<ContentParticules*>::iterator p = particules.begin();
	while(p != particules.end())
	{
		(*p)->printMe();
		p++;
		if(p != particules.end())
			std::cout<<", ";
	}
	std::cout << ")" << getCardinalityString();
}

/**
* Transforme le séquence en un reg exp
*/
std::string Sequence::toRegExp()
{
        return Children::toRegExp( ',' );
}

